﻿using System;
using System.Collections.Generic;
using System.Text;

namespace dianyingyuan
{
    [Serializable]
    class Movie
    {
        /// <summary>
        /// 主演
        /// </summary>
        private string actor;

        public string Actor
        {
            get { return actor; }
            set { actor = value; }
        }
        /// <summary>
        /// 导演
        /// </summary>
        private string director;

        public string Director
        {
            get { return director; }
            set { director = value; }
        }
        /// <summary>
        /// 电影名
        /// </summary>
        private string movieName;

        public string MovieName
        {
            get { return movieName; }
            set { movieName = value; }
        }
        /// <summary>
        /// 电影类型
        /// </summary>
        private MovieType movieType;

        public MovieType MovieType
        {
            get { return movieType; }
            set { movieType = value; }
        }
        /// <summary>
        /// 放映时间列表
        /// </summary>
        private List<string> showTimeList;

        public List<string> ShowTimeList
        {
            get { return showTimeList; }
            set { showTimeList = value; }
        }
        /// <summary>
        /// 价格
        /// </summary>
        private int price;

        public int Price
        {
            get { return price; }
            set { price = value; }
        }

        /// <summary>
        /// 图片名
        /// </summary>
        private string picture;

        public string Picture
        {
            get { return picture; }
            set { picture = value; }
        }

        public Movie(string movieName, string picture,
            string director, string actor, MovieType movieType,
            int price, List<string> showTimeList) 
        {
            this.MovieName = movieName;
            this.Picture = picture;
            this.Director = director;
            this.Actor = actor;
            this.MovieType = movieType;
            this.Price = price;
            this.ShowTimeList = showTimeList;
        }
    }
}
